<?php
use Yii\helpers\Html;
use yii\bootstrap\ActiveForm;
use yii\helpers\Url;
$this->title = '直播';
$this->registerCss($cssString);

?>
<div class="container">
    <div class="row">
      
       <?php echo $this->render('_leftnav') ?>
        <div class="col-md-10">
          <div class="page-header clearfix">
            <h1 class="pull-left">直播</h1>
            <div class="pull-right">

                                            
            </div>
          </div>
           <?php echo $this->render('_coursesetting') ?>

	        <?php
	        $form = ActiveForm::begin([
		        'options' => ['class' => 'form-horizontal','id'=>'course-form'],
		        'action'=>Url::to(['system/livesave']),
		        'method'=>'post',
		        'fieldConfig' => [
		        ],
	        ]);
	        ?>

  <fieldset>

	  <?= $form->field($model, 'direct_status',['template'=>'<div class="form-group"><div class="col-md-3 control-label">{label}</div><div class="controls col-md-8 radios">{input}{error}</div></div>'])->radioList(['1'=>'开启','0'=>'关闭']) ?>

	  <?= $form->field($model, 'online_num',['template'=>'<div class="form-group"><div class="col-md-3 control-label">{label}</div><div class="controls col-md-8">{input}{error}<p class="help-block"></p></div></div>'])->textInput() ?>

  </fieldset>

  <div class="form-group">
    <div class="controls col-md-offset-3 col-md-8">
	    <?= Html::submitButton('提交', ['class'=>'btn btn-primary']) ?>
    </div>
  </div>
<?php ActiveForm::end()?>

        </div>
    </div>
</div>
